#pragma once

#include "py32f0xx_hal.h"

struct ADCInitParam {
    uint32_t gpioPin;
    GPIO_TypeDef *gpioPort;
};

extern ADC_HandleTypeDef hadc1;

int32_t ADC1_Init(const struct ADCInitParam *param );
void ADC1_Deinit(void);

uint16_t ADC1_getValueByChannel(uint32_t channel );

